let api = [];
const apiDocListSize = 1
api.push({
    name: 'default',
    order: '1',
    list: []
})
api[0].list.push({
    alias: 'ErrorController',
    order: '1',
    link: '',
    desc: '',
    list: []
})
api[0].list[0].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/',
    desc: '',
});
api[0].list[0].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/404',
    desc: '',
});
api[0].list[0].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/error/500',
    desc: '',
});
api[0].list.push({
    alias: 'AdminDeliveryAddressController',
    order: '2',
    link: '',
    desc: '',
    list: []
})
api[0].list[1].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/deliveryAddress/del/{id}',
    desc: '',
});
api[0].list[1].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/deliveryAddress/delAll/{ids}',
    desc: '',
});
api[0].list[1].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/deliveryAddress/save',
    desc: '',
});
api[0].list[1].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/deliveryAddress/',
    desc: '',
});
api[0].list[1].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/deliveryAddress/detail/{id}',
    desc: '',
});
api[0].list[1].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/deliveryAddress/{memberId}',
    desc: '',
});
api[0].list.push({
    alias: 'AdminMemberController',
    order: '3',
    link: '',
    desc: '',
    list: []
})
api[0].list[2].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/',
    desc: '',
});
api[0].list[2].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/{id}',
    desc: '',
});
api[0].list[2].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/save',
    desc: '',
});
api[0].list[2].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/saveInit',
    desc: '',
});
api[0].list[2].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/del/{id}',
    desc: '',
});
api[0].list[2].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/chgEnable',
    desc: '',
});
api[0].list[2].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/bindCustomer',
    desc: '',
});
api[0].list[2].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/memberBindlist',
    desc: '',
});
api[0].list[2].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/member/bindDel/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'AdminMemberMessageController',
    order: '4',
    link: '',
    desc: '',
    list: []
})
api[0].list[3].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/admin/memberMessage/',
    desc: '',
});
api[0].list[3].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/admin/memberMessage/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'CustomerMessageController',
    order: '5',
    link: '',
    desc: '',
    list: []
})
api[0].list[4].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/customerMessage/',
    desc: '',
});
api[0].list[4].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/customerMessage/',
    desc: '',
});
api[0].list[4].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/customerMessage/selectDetail/{id}',
    desc: '',
});
api[0].list[4].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/customerMessage/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'FeedbackController',
    order: '6',
    link: '',
    desc: '',
    list: []
})
api[0].list[5].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/feedback/',
    desc: '',
});
api[0].list[5].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/feedback/del/{id}',
    desc: '',
});
api[0].list[5].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/feedback/selectDetail/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'LeaveMessageController',
    order: '7',
    link: '',
    desc: '',
    list: []
})
api[0].list[6].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/leaveMessage/',
    desc: '',
});
api[0].list[6].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/leaveMessage/reply',
    desc: '',
});
api[0].list[6].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/leaveMessage/selectDetail/{id}',
    desc: '',
});
api[0].list[6].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/leaveMessage/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'MemberPointController',
    order: '8',
    link: '&lt;p&gt;会员积分模块_前端控制器&lt;/p&gt;',
    desc: '&lt;p&gt;会员积分模块前端控制器&lt;/p&gt;',
    list: []
})
api[0].list[7].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberPoint/',
    desc: '',
});
api[0].list[7].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberPoint/addPoint',
    desc: '',
});
api[0].list.push({
    alias: 'MessageTypeController',
    order: '9',
    link: '',
    desc: '',
    list: []
})
api[0].list[8].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/messageType/',
    desc: '',
});
api[0].list[8].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/messageType/',
    desc: '',
});
api[0].list[8].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/messageType/updatedStatus',
    desc: '',
});
api[0].list[8].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/messageType/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontDeliveryAddressController',
    order: '10',
    link: '',
    desc: '',
    list: []
})
api[0].list[9].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/deliverAddr/',
    desc: '',
});
api[0].list[9].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/deliverAddr/',
    desc: '',
});
api[0].list[9].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/deliverAddr/{id}',
    desc: '',
});
api[0].list[9].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/deliverAddr/del/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontFeedbackController',
    order: '11',
    link: '',
    desc: '',
    list: []
})
api[0].list[10].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/feedback/save',
    desc: '',
});
api[0].list[10].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/feedback/typeList',
    desc: '',
});
api[0].list.push({
    alias: 'FrontLeaveMessageController',
    order: '12',
    link: '',
    desc: '',
    list: []
})
api[0].list[11].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/leaveMessage/',
    desc: '',
});
api[0].list[11].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/leaveMessage/save',
    desc: '',
});
api[0].list[11].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/leaveMessage/{id}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontMemberController',
    order: '13',
    link: '',
    desc: '',
    list: []
})
api[0].list[12].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/detail',
    desc: '',
});
api[0].list[12].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/setAvator',
    desc: '',
});
api[0].list[12].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/setNickName',
    desc: '',
});
api[0].list[12].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/setBirth',
    desc: '',
});
api[0].list[12].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/setGender/{gender}',
    desc: '',
});
api[0].list[12].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/setMobile',
    desc: '',
});
api[0].list[12].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/setLoc',
    desc: '',
});
api[0].list[12].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/index',
    desc: '',
});
api[0].list[12].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/reBindAgent',
    desc: '',
});
api[0].list[12].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/myAgent',
    desc: '',
});
api[0].list[12].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/unBind',
    desc: '',
});
api[0].list[12].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/checkAgentApply',
    desc: '',
});
api[0].list[12].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/member/bindCid/{cid}',
    desc: '',
});
api[0].list.push({
    alias: 'FrontMemberPointController',
    order: '14',
    link: '会员积分模块',
    desc: '会员积分模块',
    list: []
})
api[0].list[13].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/front/memberPoint/selectPointList',
    desc: '积分记录',
});
api[0].list.push({
    alias: 'MemberMessageController',
    order: '15',
    link: '',
    desc: '',
    list: []
})
api[0].list[14].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/{id}',
    desc: '',
});
api[0].list[14].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/member',
    desc: '',
});
api[0].list[14].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/noread',
    desc: '',
});
api[0].list[14].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/noReadByType',
    desc: '',
});
api[0].list[14].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/updateIsRead/{id}',
    desc: '',
});
api[0].list[14].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/',
    desc: '',
});
api[0].list[14].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/selectByType/{type}',
    desc: '',
});
api[0].list[14].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/save',
    desc: '',
});
api[0].list[14].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/msgReply',
    desc: '',
});
api[0].list[14].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/memberMessage/selectMemberMsgList',
    desc: '',
});
api[0].list.push({
    alias: 'MsgCodeLimitController',
    order: '16',
    link: '',
    desc: '',
    list: []
})
api[0].list[15].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/msgCodeLimit/',
    desc: '',
});
api[0].list[15].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/msgCodeLimit/save',
    desc: '',
});
api[0].list[15].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/msgCodeLimit/reset',
    desc: '',
});
api[0].list[15].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/msgCodeLimit/updateWhiteList',
    desc: '',
});
api[0].list[15].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/msgCodeLimit/del/{id}',
    desc: '',
});
api[0].list[15].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/msgCodeLimit/delBatch',
    desc: '',
});
api[0].list.push({
    alias: 'PassportController',
    order: '17',
    link: '',
    desc: '',
    list: []
})
api[0].list[16].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/checkMobile',
    desc: '',
});
api[0].list[16].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/checkAgentBind',
    desc: '',
});
api[0].list[16].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/sendMsg',
    desc: '',
});
api[0].list[16].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/register',
    desc: '',
});
api[0].list[16].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/resetPwdByMobile',
    desc: '',
});
api[0].list[16].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/checkPwd',
    desc: '',
});
api[0].list[16].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/passport/resetPwd',
    desc: '',
});
api[0].list.push({
    alias: 'DeliveryAddressRpcController',
    order: '18',
    link: '',
    desc: '',
    list: []
})
api[0].list[17].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/deliveryAddress/getById',
    desc: '',
});
api[0].list.push({
    alias: 'LeaveMessageRpcController',
    order: '19',
    link: '',
    desc: '',
    list: []
})
api[0].list[18].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/leavemessage/noReplyList',
    desc: '',
});
api[0].list.push({
    alias: 'MemberMessageRpcController',
    order: '20',
    link: '',
    desc: '',
    list: []
})
api[0].list[19].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/memberMessage/createMsg',
    desc: '',
});
api[0].list.push({
    alias: 'MemberRpcController',
    order: '21',
    link: '',
    desc: '',
    list: []
})
api[0].list[20].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/selectById',
    desc: '',
});
api[0].list[20].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/saveOrUpdateMember',
    desc: '',
});
api[0].list[20].list.push({
    order: '3',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/changAgentStatus',
    desc: '',
});
api[0].list[20].list.push({
    order: '4',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/loadUserByUsername',
    desc: '',
});
api[0].list[20].list.push({
    order: '5',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/loadUserByMobile',
    desc: '',
});
api[0].list[20].list.push({
    order: '6',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/loadUserByOpenId',
    desc: '',
});
api[0].list[20].list.push({
    order: '7',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/loadUserByXcxOpenId',
    desc: '',
});
api[0].list[20].list.push({
    order: '8',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/selectVoForPreOrder',
    desc: '',
});
api[0].list[20].list.push({
    order: '9',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/selectByAgentId',
    desc: '',
});
api[0].list[20].list.push({
    order: '10',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/updatePoint',
    desc: '',
});
api[0].list[20].list.push({
    order: '11',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/createMember',
    desc: '方法描述:创建会员',
});
api[0].list[20].list.push({
    order: '12',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/bonusPointsHandle',
    desc: '积分奖励处理',
});
api[0].list[20].list.push({
    order: '13',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/updateOpenId',
    desc: '',
});
api[0].list[20].list.push({
    order: '14',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/xcxRegister',
    desc: '',
});
api[0].list[20].list.push({
    order: '15',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/updateXcxOpenId',
    desc: '',
});
api[0].list[20].list.push({
    order: '16',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/removeBindAgent',
    desc: '',
});
api[0].list[20].list.push({
    order: '17',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/resetPwd',
    desc: '',
});
api[0].list[20].list.push({
    order: '18',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/api/member/loadAgentCid',
    desc: '',
});
api[0].list.push({
    alias: 'TestWeiXinController',
    order: '22',
    link: '',
    desc: '',
    list: []
})
api[0].list[21].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/wx/test',
    desc: '',
});
api[0].list.push({
    alias: 'WechatController',
    order: '23',
    link: '微信开发者接入',
    desc: '微信开发者接入',
    list: []
})
api[0].list[22].list.push({
    order: '1',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/wechat/',
    desc: '方法描述:微信接入',
});
api[0].list[22].list.push({
    order: '2',
    deprecated: 'false',
    url: 'http://127.0.0.1:7500/wechat/',
    desc: '',
});
api[0].list.push({
    alias: 'error',
    order: '24',
    link: 'error_code_list',
    desc: '错误码列表',
    list: []
})
api[0].list.push({
    alias: 'dict',
    order: '25',
    link: 'dict_list',
    desc: '数据字典',
    list: []
})
api[0].list[24].list.push({
    order: '1',
    deprecated: 'false',
    url: '',
    desc: 'http状态码字典',
});
document.onkeydown = keyDownSearch;
function keyDownSearch(e) {
    const theEvent = e;
    const code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    if (code == 13) {
        const search = document.getElementById('search');
        const searchValue = search.value;
        let searchGroup = [];
        for (let i = 0; i < api.length; i++) {

            let apiGroup = api[i];

            let searchArr = [];
            for (let i = 0; i < apiGroup.list.length; i++) {
                let apiData = apiGroup.list[i];
                const desc = apiData.desc;
                if (desc.indexOf(searchValue) > -1) {
                    searchArr.push({
                        order: apiData.order,
                        desc: apiData.desc,
                        link: apiData.link,
                        list: apiData.list
                    });
                } else {
                    let methodList = apiData.list || [];
                    let methodListTemp = [];
                    for (let j = 0; j < methodList.length; j++) {
                        const methodData = methodList[j];
                        const methodDesc = methodData.desc;
                        if (methodDesc.indexOf(searchValue) > -1) {
                            methodListTemp.push(methodData);
                            break;
                        }
                    }
                    if (methodListTemp.length > 0) {
                        const data = {
                            order: apiData.order,
                            desc: apiData.desc,
                            link: apiData.link,
                            list: methodListTemp
                        };
                        searchArr.push(data);
                    }
                }
            }
            if (apiGroup.name.indexOf(searchValue) > -1) {
                searchGroup.push({
                    name: apiGroup.name,
                    order: apiGroup.order,
                    list: searchArr
                });
                continue;
            }
            if (searchArr.length === 0) {
                continue;
            }
            searchGroup.push({
                name: apiGroup.name,
                order: apiGroup.order,
                list: searchArr
            });
        }
        let html;
        if (searchValue == '') {
            const liClass = "";
            const display = "display: none";
            html = buildAccordion(api,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        } else {
            const liClass = "open";
            const display = "display: block";
            html = buildAccordion(searchGroup,liClass,display);
            document.getElementById('accordion').innerHTML = html;
        }
        const Accordion = function (el, multiple) {
            this.el = el || {};
            this.multiple = multiple || false;
            const links = this.el.find('.dd');
            links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown);
        };
        Accordion.prototype.dropdown = function (e) {
            const $el = e.data.el;
            $this = $(this), $next = $this.next();
            $next.slideToggle();
            $this.parent().toggleClass('open');
            if (!e.data.multiple) {
                $el.find('.submenu').not($next).slideUp("20").parent().removeClass('open');
            }
        };
        new Accordion($('#accordion'), false);
    }
}

function buildAccordion(apiGroups, liClass, display) {
    let html = "";
    let doc;
    if (apiGroups.length > 0) {
         if (apiDocListSize == 1) {
            let apiData = apiGroups[0].list;
            for (let j = 0; j < apiData.length; j++) {
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiData[j].link + '">' + apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                html += '<ul class="sectlevel2" style="'+display+'">';
                doc = apiData[j].list;
                for (let m = 0; m < doc.length; m++) {
                    let spanString;
                    if (doc[m].deprecated == 'true') {
                        spanString='<span class="line-through">';
                    } else {
                        spanString='<span>';
                    }
                    html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                }
                html += '</ul>';
                html += '</li>';
            }
        } else {
            for (let i = 0; i < apiGroups.length; i++) {
                let apiGroup = apiGroups[i];
                html += '<li class="'+liClass+'">';
                html += '<a class="dd" href="#_' + apiGroup.name + '">' + apiGroup.order + '.&nbsp;' + apiGroup.name + '</a>';
                html += '<ul class="sectlevel1">';

                let apiData = apiGroup.list;
                for (let j = 0; j < apiData.length; j++) {
                    html += '<li class="'+liClass+'">';
                    html += '<a class="dd" href="#_' + apiData[j].link + '">' +apiGroup.order+'.'+ apiData[j].order + '.&nbsp;' + apiData[j].desc + '</a>';
                    html += '<ul class="sectlevel2" style="'+display+'">';
                    doc = apiData[j].list;
                    for (let m = 0; m < doc.length; m++) {
                       let spanString;
                       if (doc[m].deprecated == 'true') {
                           spanString='<span class="line-through">';
                       } else {
                           spanString='<span>';
                       }
                       html += '<li><a href="#_' + apiData[j].order + '_' + doc[m].order + '_' + doc[m].href + '">' + apiData[j].order + '.' + doc[m].order + '.&nbsp;' + spanString + doc[m].desc + '<span></a> </li>';
                   }
                    html += '</ul>';
                    html += '</li>';
                }

                html += '</ul>';
                html += '</li>';
            }
        }
    }
    return html;
}